package com.xintai.approval.mapper;

import java.util.List;
import com.xintai.approval.domain.FlowApply;

/**
 * 申请Mapper接口
 *
 * @author xintai
 * @date 2021-02-01
 */
public interface FlowApplyMapper
{
    /**
     * 查询申请
     *
     * @param id 申请ID
     * @return 申请
     */
    public FlowApply selectFlowApplyById(Long id);

    /**
     * 查询申请列表
     *
     * @param flowApply 申请
     * @return 申请集合
     */
    public List<FlowApply> selectFlowApplyList(FlowApply flowApply);

    /**
     * 新增申请
     *
     * @param flowApply 申请
     * @return 结果
     */
    public int insertFlowApply(FlowApply flowApply);

    /**
     * 修改申请
     *
     * @param flowApply 申请
     * @return 结果
     */
    public int updateFlowApply(FlowApply flowApply);

    /**
     * 删除申请
     *
     * @param id 申请ID
     * @return 结果
     */
    public int deleteFlowApplyById(Long id);

    /**
     * 批量删除申请
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteFlowApplyByIds(Long[] ids);


}
